<?php

Yii::import('application.models._base.BaseAmanCourseType');

class AmanCourseType extends BaseAmanCourseType {

    public static function model($className = __CLASS__) {
        return parent::model($className);
    }

    public static function label($n = 1) {
        return Yii::t('app', 'Course Type|Course Types', $n);
    }

    public static function getcourseType($courseId) {
        if (!empty($courseId)) {
            $course = AmanCourseType::model()->findByPk($courseId);
            return $course->course_name;
        } else {
            return'';
        }
    }

}